package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import lombok.Data;

import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

/**
 * <p>
 * 设置表
 * </p>
 *
 * @author HuangLu
 * @since 2019-01-08
 */
@Data
public class BarSetting extends Model<BarSetting> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "setting_id", type = IdType.AUTO)
    private Long settingId;

    /**
     * 每日首次上报时间
     */
    private String reportTime;

    /**
     * 每日位置上报的间隔
     */
    private Integer reportInterval;

    /**
     * 最近检修时间
     */
    private String lastCheckTime;

    /**
     * 合计检修次数
     */
    private Integer checkTimes;

    /**
     * 工作状态1、正常状态：常规工作状态2、省电状态：指示灯节电状态3、待修状态：平台发出维修指令4、休眠状态：断电或低功耗状态
     */
    private Integer workStatus;

    /**
     * 指示灯工作时段
     */
    private String lampWorkPeriod;

    /**
     * 指示灯首次工作时间
     */
    private String lampFirstTime;

    /**
     * 指示灯休眠间隔时间
     */
    private Integer lampSleepInterval;

       /**
     * 指示灯工作占空比
     */
    private String lampWorkPercent;
/**
     * 寻找定位信号时间
     */
    private Integer searchLocationTime;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;



    @Override
    public String toString() {
        return "BarSetting{" +
        "settingId=" + settingId +
        ", reportTime=" + reportTime +
        ", reportInterval=" + reportInterval +
        ", lastCheckTime=" + lastCheckTime +
        ", checkTimes=" + checkTimes +
        ", workStatus=" + workStatus +
        ", lampWorkPeriod=" + lampWorkPeriod +
        ", lampFirstTime=" + lampFirstTime +
        ", lampSleepInterval=" + lampSleepInterval +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
